package com.t12;

/**
 * Created by xuyiwei on 2018/7/23.
 */
class E4Exception extends Exception{
    private String myMsg;
    public E4Exception(String message,String myMsg) {
        super(message);
        this.myMsg = myMsg;
    }

    public String getMyMsg() {
        return myMsg;
    }

    public void setMyMsg(String myMsg) {
        this.myMsg = myMsg;
    }
}
public class E4  {
    public void f() throws E4Exception {
        throw new E4Exception("aaa","bbb");
    }

    public static void main(String[] args) {
        E4 e4 = new E4();
        try {
            e4.f();
        } catch (E4Exception e) {
            System.out.println(e.getMyMsg());
        }
    }
}
